<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>注册页</title> 
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<link rel="shortcut icon" href="http://localhost/project/shop/Static/Index/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="http://localhost/project/shop/Static/Index/Css/login-register.css" />
<link rel="stylesheet" href="http://localhost/project/shop/Static/Index/Css/hdjs.css" />
<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/jquery.min.js"></script>
<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/hdjs.min.js"></script>
<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/login-register.js"></script> 

<!--[if IE 6]>
<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/DD_belatedPNG.js"></script>
<script>
    DD_belatedPNG.fix(".img_logo", "img");
</script>
<![endif]-->
</head>
<body> 
	<div class="reg_h">
		<a href="http://localhost/project/shop"><img src="http://localhost/project/shop/Static/Index/Images/snlogo.png" alt="" class="snlogo"></a>
		<span class="channel"></span>
	</div>
  	
  	<div class="t_reg">
  		<a href="javascript:;" class="t_a">个人用户</a>
  		<p>我已经注册，马上<a href="<?php echo U('Member/login');?>">登录 ></a></p>
    </div> 
    <div class="main_reg">

	<div class="m_reg_l">
		<!--表单验证Start-->
<script>
    $(function () { 
        $('#registerForm').validate({
            username: {
                rule: {
                    required: true,
                    minlen:5,
                    maxlen:15
                },
                error: {
                    required: '用户名不能为空',
                    minlen:'用户名最少不得少于5位',
                    maxlen:'用户名最多不超过15位'
                },
                success: '验证通过',
                message: '用户名'
            },
            pwd1: {
                rule: {
                    required: true,
                    minlen:5
                },
                error: {
                    required: '密码不能为空',
                    minlen:'密码不得少于5位'
                },
                success: '验证通过',
                message: '请输入密码'
            },
            pwd2: {
                rule: {
                    required: true,
                    confirm:'pwd1'
                },
                error: {
                    required: '密码不能为空',
                    confirm:'两次不一样'
                },
                success: '验证通过',
                message: '请再次输入密码'
            },
            code: {
                rule: {
                    required: true,
                    ajax:{url:'<?php echo U("Member/ajaxCheckCode");?>'}
                },
                error: {
                    required: '验证码不能为空', 
                },
                success: '验证通过',
                message: '请输入验证码'
            },

　     
        })
    })
</script>
<!--表单验证End-->

		<form action="" method="post" id="registerForm">
			<dl>
				<dt>
					<label for="">用户名:</label><input type="text" placeholder="请输入的用户名" name="username" id="">  

				</dt>
				<dt>
					<label for="">设置密码:</label><input type="password" name="pwd1" id=""> 
				</dt>
				<dt>
					<label for="">确认密码:</label><input type="password" name="pwd2" id=""> 
				</dt>
				<dt>
					<label for="">验证码:</label><input type="text" name="code" id="" class="reg_code">　
					<span class="reg_msg" style="float:left;">
						<img src="<?php echo U('Member/code');?>" onclick="this.src=this.src+'&'+Math.random()">
					</span>　
				</dt>
				<dt> 
					<input type="submit" value="" class="sub_btn">
				</dt>
				<dt>
					<a href="javascript:;" class="a_ok a_0">《苏宁易购会员章程》</a>
					<a href="javascript:;" class="a_ok">《易付宝协议》</a>及
					<a href="javascript:;" class="a_ok">《苏宁广告联盟在线协议》</a>
				</dt>
			</dl> 
		</form>
	</div>
	<div class="m_reg_r"></div>


    </div> 
<br>
<br>
<br>
<br>
    <!--S foot -->
    <!-- <div class="foot"> </div>  -->
</body>
</html>